{__NOLAYOUT__}
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>财富宝发送</title>
	<link rel="stylesheet" href="__CDN__/assets/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__CDN__/assets/css/detail.css">
	<script src="__CDN__/assets/libs/jquery/dist/jquery.min.js"></script>
	<script src="__CDN__/assets/libs/bootstrap/dist/js/bootstrap.min.js"></script>
	<script src="__CDN__/assets/js/detail.js"></script>
	<script type="text/javascript">
		    var a = '';
			var b = '';
			var c = '';
			var d = '';
			function chadnge(e) {
				a = e;
				if(a != '' && b != '' && c != ''&& d != '') {
					document.getElementById('btn').style.background="#4782DB";
				}else{
					document.getElementById('btn').style.background="#E6E6E6";
				}
			}
 
			function chadnge2(e) {
				b = e;
					if(a != '' && b != ''&& c != ''&& d != '') {
					document.getElementById('btn').style.background="#4782DB";
				}else{
					document.getElementById('btn').style.background="#E6E6E6";
				}
			}
			function chadnge3(e) {
				c = e;
					if(a != '' && b != ''&& c != ''&& d != '') {
					document.getElementById('btn').style.background="#4782DB";
				}else{
					document.getElementById('btn').style.background="#E6E6E6";
				}
			}
			function chadnge4(e) {
				d = e;
					if(a != '' && b != ''&& c != ''&& d != '') {
					document.getElementById('btn').style.background="#4782DB";
				}else{
					document.getElementById('btn').style.background="#E6E6E6";
				}
			}

	</script>
</head>
<body style="background-color: #fff;">
	<div class="indexone_heard">
			<div class="indexone_heard_return">
				<a href="javascript:history.back();"><img src="__CDN__/assets/img/bikebi/return.png"></a>
			</div>
			<div class="indexone_heard_title">
				<p>财富宝发送</p>
			</div>
	</div>
	<div class="indexone_form">
    <form method="post" action="">	
    <div class="indexone_card" style="height:190px">
    	<span>对方账号：</span><input type="text" name="username" value="{$username|default=''}" placeholder="请输入用户名" style="" onchange="chadnge(this.value)" id="to_account"><br/>
       
        <span style="width:20%">钱包地址：</span><input type="text" name="wallet_address" value="{$wallet_address|default=''}" placeholder="输入钱包地址" style="font-size: 1rem;width:76%" onchange="chadnge2(this.value)" id="address">
       


        <br/>
        <div style="height: 5%;"></div>
        <span>数量：</span><input type="text" name="amount" placeholder="输入财富宝数量" onchange="chadnge3(this.value)" id="num"  onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"  onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'0')}else{this.value=this.value.replace(/\D/g,'')}"><br/>
        <div class="balance"> <span>余额：</span> <span id="yue">{$user.money}</span><span>/财富宝</span> </div>
    </div>
    <div class="indexone_code"><input type="text" name="pay_password" placeholder="请输入支付密码" onchange="chadnge4(this.value)" id="code"></div>
    <input  class="indexone_submit btn btn-defaul" id='btn' type="submit" value="发送"> 
    </form>	
    </div>
</body>
</html>	
